//点击获取验证码倒计时效果
function sendSms(val){
  if(val.stop)return;
  settime(val);

}
var countdown = 60;
function settime(val) {
  if(countdown == 0){
      val.removeAttribute("disabled");
      val.innerHTML="获取验证码";
      countdown = 60;
      return false
  } else {
      val.setAttribute("disabled" , true);
      val.innerHTML = "重新发送("+ countdown +")";
      val.stop = true;
      countdown--;
      if(countdown==0)val.stop=false;
  }
  setTimeout(function () {
    settime(val)
  },1000);
}


